
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>容器接入 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="guide_for_bundle.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    原理解析
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../principle-intro/Runtime_principle.html">
            
                <a href="../principle-intro/Runtime_principle.html">
            
                    
                    框架原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../principle-intro/Project_architectured.html">
            
                <a href="../principle-intro/Project_architectured.html">
            
                    
                    名词解释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../principle-intro/Apk_architecture.html">
            
                <a href="../principle-intro/Apk_architecture.html">
            
                    
                    APK结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../principle-intro/File_architecture_runtime.html">
            
                <a href="../principle-intro/File_architecture_runtime.html">
            
                    
                    运行期文件结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="./">
            
                <a href="./">
            
                    
                    接入指引
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="guide_for_build.html">
            
                <a href="guide_for_build.html">
            
                    
                    容器接入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="guide_for_bundle.html">
            
                <a href="guide_for_bundle.html">
            
                    
                    bundle拆分|新建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="guide_for_compile.html">
            
                <a href="guide_for_compile.html">
            
                    
                    awo编译
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../update/">
            
                <a href="../update/">
            
                    
                    动态部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../update/principle.html">
            
                <a href="../update/principle.html">
            
                    
                    技术原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../update/guide.html">
            
                <a href="../update/guide.html">
            
                    
                    一些限制
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    FAQ
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../faq/help.html">
            
                <a href="../faq/help.html">
            
                    
                    故障排查
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >容器接入</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x4E3B;&#x5DE5;&#x7A0B;&#x5BB9;&#x5668;&#x63A5;&#x5165;">&#x4E3B;&#x5DE5;&#x7A0B;&#x5BB9;&#x5668;&#x63A5;&#x5165;</h1>
<p>Atlas&#x5F00;&#x6E90;&#x7684;&#x4EE3;&#x7801;&#x5185;&#x5BB9;&#x4E3B;&#x8981;&#x5305;&#x62EC;&#x4EE5;&#x4E0B;&#x51E0;&#x4E2A;&#x6A21;&#x5757;&#xFF1A;</p>
<ol>
<li>&#x57FA;&#x4E8E;gradle&#x7684;&#x6784;&#x5EFA;&#x63D2;&#x4EF6;&#xFF08;&#x5305;&#x62EC;&#x4FEE;&#x6539;&#x8FC7;&#x7684;aapt&#x5185;&#x5BB9;&#xFF09;&#xFF1B;</li>
<li>android&#x7AEF;&#x6D4B;&#x5BB9;&#x5668;&#x8FD0;&#x884C;&#x5E93;atlas_core&#xFF1B;</li>
<li>&#x57FA;&#x4E8E;&#x5BB9;&#x5668;&#x63D0;&#x4F9B;&#x66F4;&#x65B0;&#x80FD;&#x529B;&#x7684;&#x5E93;atlas_update;</li>
</ol>
<p>&#x6211;&#x4EEC;&#x6BD4;&#x8F83;&#x503E;&#x5411;&#x4E8E;&#x7528;&#x4E00;&#x4E2A;&#x6BD4;&#x8F83;&#x5E72;&#x51C0;&#x7684;&#x58F3;&#x5B50;&#x5DE5;&#x7A0B;&#x6765;&#x4F5C;&#x4E3A;&#x5BB9;&#x5668;&#x67B6;&#x6784;&#x4E0B;&#x7684;&#x6253;&#x5305;&#x5DE5;&#x7A0B;&#xFF0C;&#x8FD9;&#x4E2A;&#x5DE5;&#x7A0B;&#x5EFA;&#x8BAE;&#x53EA;&#x5B58;&#x5728;AndroidManifest.xml&#x548C;&#x6784;&#x5EFA;&#x7684;&#x6587;&#x4EF6;&#x53CA;&#x90E8;&#x5206;&#x8D44;&#x6E90;&#x5185;&#x5BB9;&#xFF0C;manifest&#x6587;&#x4EF6;&#x7528;&#x4E8E;&#x5355;&#x72EC;&#x7BA1;&#x7406;apk&#x7684;icon&#xFF0C;&#x7248;&#x672C;&#x53F7;&#xFF0C;versioncode&#x7B49;&#xFF1B;&#x6784;&#x5EFA;&#x6587;&#x4EF6;&#x7BA1;&#x7406;&#x7248;&#x672C;&#x4F9D;&#x8D56;&#xFF1B;&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x53D6;&#x540D;&#x6253;&#x5305;&#x5DE5;&#x7A0B;&#x7B49;&#x540D;&#x5B57;&#x4E3A;apk_builder;
&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;Apk_builder&#x9664;&#x4E86;&#x4E3B;Apk&#x7684;AndroidManifest.xml&#x4E4B;&#x5916;&#xFF0C;&#x63A5;&#x5165;Atlas&#x540E;&#xFF0C;Main_builder&#x5C06;&#x4F1A;&#x5305;&#x542B;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;</p>
<ol>
<li><strong>build.gradle</strong> : &#x7528;&#x4E8E;&#x914D;&#x7F6E;&#x4E3B;apk&#x7684;&#x4F9D;&#x8D56;&#x53CA;&#x63A7;&#x5236;&#x6784;&#x5EFA;&#x53C2;&#x6570;</li>
<li><strong>packageIdFile.properties</strong>: &#x914D;&#x7F6E;bundle&#x7684;packageId,&#x4EE5;&#x4FDD;&#x8BC1;&#x8D44;&#x6E90;&#x6BB5;&#x72EC;&#x7ACB;&#xFF08;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;mtl.tBuildConfig.autoPackageId&#x8BBE;&#x7F6E;&#x81EA;&#x52A8;&#x5206;&#x914D;packageID&#xFF09;</li>
<li><strong>bundleBaseInfoFile.json</strong>: &#x914D;&#x7F6E;bundle&#x7684;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;</li>
</ol>
<p>&#x4E0B;&#x9762;&#x4F1A;&#x9010;&#x4E2A;&#x8BF4;&#x660E;&#x6BCF;&#x4E2A;&#x6587;&#x4EF6;&#x7684;&#x4F7F;&#x7528;&#x548C;&#x6CE8;&#x610F;&#x8981;&#x70B9;</p>
<h2 id="buildgradleatlasgradleplugin">build.gradle(AtlasGradlePlugin)</h2>
<p>&#x652F;&#x6301; atlas &#x5DE5;&#x7A0B;&#x6253;&#x5305;&#x7684;gradle &#x63D2;&#x4EF6;&#xFF0C; &#x57FA;&#x4E8E; google &#x5B98;&#x65B9;&#x7684; android builder &#xFF08;2.0.0~2.1.0&#xFF09;</p>
<ol>
<li><p>&#x5F15;&#x7528;&#x63D2;&#x4EF6;&#x53CA;&#x4F9D;&#x8D56;&#x4ED3;&#x5E93;</p>
<pre><code> buildscript {
     repositories {
         mavenLocal()
         jcenter()
     }
     dependencies {
         classpath &quot;com.taobao.android:atlasplugin:1.0.1&quot;
     }
 }
 repositories {
     jcenter()
 }
</code></pre><p> &#x6CE8;&#x610F;&#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x6307;&#x5B9A; classpath &quot;com.android.tools.build:gradle&quot;&#x7684;&#x7248;&#x672C;&#xFF0C;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x7684;&#x662F; 2.1</p>
</li>
<li><p>&#x5E94;&#x7528;plugin</p>
<pre><code> apply plugin: &apos;com.taobao.atlas.application&apos;
 //&#x6CE8;&#x610F;&#x4E0D;&#x80FD;&#x540C;&#x65F6; apply com.android.application
</code></pre></li>
<li><p>&#x6DFB;&#x52A0;&#x8FD0;&#x884C;&#x5E93;&#x4F9D;&#x8D56;    </p>
<pre><code> dependencies {
    compile(&apos;com.taobao.android:atlas_core:5.0.0@aar&apos;) {
     transitive = true
 }
 compile &apos;com.taobao.android:atlasupdate:1.0.8@aar&apos;
</code></pre><p> <strong>&#x5982;&#x679C;&#x4E0D;&#x9700;&#x8981;&#x7528;&#x5230;atlas&#x7684;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x529F;&#x80FD;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x4F9D;&#x8D56;atlasupdate</strong>    </p>
</li>
<li><p>&#x5F00;&#x542F;atlas&#x5BB9;&#x5668;&#x529F;&#x80FD;</p>
<pre><code>  atlas {
      atlasEnabled true
    tBuildConfig {
         autoStartBundles =[&apos;com.taobao.firstbundle&apos;] //&#x81EA;&#x542F;&#x52A8;bundle&#x914D;&#x7F6E;
     }

      patchConfigs{
         debug {
         createTPatch true
         }
         }
         buildTypes {
         debug {
             if (apVersion){
                     baseApDependency  &quot;com.taobao.android.atlasdemo:AP-debug:${apVersion}@ap&quot;
                 patchConfig    patchConfigs.debug
                 }
             }
          }
     }   
</code></pre><p> <strong>atlasEnable&#x5B57;&#x6BB5;&#x9700;&#x8981;&#x6307;&#x5B9A;&#x4E3A;true&#x624D;&#x80FD;&#x5F00;&#x542F;&#x6253;&#x5305;&#x9636;&#x6BB5;&#x7684;&#x57FA;&#x4E8E;&#x5BB9;&#x5668;&#x6269;&#x5C55;&#x7684;task</strong>    </p>
<p><strong>&#x540E;&#x7EED;&#x4E24;&#x4E2A;&#x8BBE;&#x7F6E;&#x7528;&#x8BED;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x6253;&#x5305;&#x65F6;&#x7684;&#x5F00;&#x5173;&#x8BBE;&#x7F6E;&#xFF0C;&#x5176;&#x4F59;&#x5B57;&#x6BB5;&#x53C2;&#x8003;&#x914D;&#x7F6E;&#x5217;&#x8868;&#x4E2D;&#x7684;&#x4F7F;&#x7528;&#x65B9;&#x5F0F;</strong></p>
</li>
</ol>
<ol>
<li><p>&#x6784;&#x5EFA;</p>
<ol>
<li><p>APK&#x6784;&#x5EFA; <strong>./gradlew assembleDebug &#x6216;&#x8005; assembleRelease</strong></p>
<p> &#x6784;&#x5EFA;&#x4EA7;&#x7269;&#xFF1A;</p>
<ol>
<li>build/outputs/apk/xx.apk , &#x6784;&#x5EFA;&#x7684;&#x4EA7;&#x7269;apk   </li>
<li>build/outputs/apk/xx.ap , &#x6784;&#x5EFA;&#x7684;&#x57FA;&#x7EBF;&#x5305;&#xFF0C; &#x91CC;&#x9762;&#x5305;&#x542B; apk &#x548C;&#x5176;&#x4ED6;&#x7684;&#x6253;&#x5305;&#x4E2D;&#x95F4;&#x914D;&#x7F6E;</li>
<li>build/outputs/dependencyTree-debug.json , &#x6574;&#x4E2A;&#x5DE5;&#x7A0B;&#x7684;&#x4F9D;&#x8D56;&#x6811;</li>
<li>build/outputs/atlasConfig.json , &#x6574;&#x4E2A;&#x6253;&#x5305;&#x7684; atlas &#x914D;&#x7F6E;&#x53C2;&#x6570;</li>
</ol>
</li>
<li><p>TPatch&#x6784;&#x5EFA; <strong>./gradlew clean assembleDebug -                DapVersion=1.0.0 -DversionName=1.0.1</strong></p>
<p> apVersion&#x8868;&#x793A;&#x88AB;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x5E94;&#x7528;&#x7684;&#x57FA;&#x7EBF;&#x7248;&#x672C;&#xFF0C;versionName&#x8868;&#x793A;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x540E;&#x65B0;&#x7684;versionName</p>
<p> &#x6784;&#x5EFA;&#x4EA7;&#x7269;&#xFF1A;
 &#x9664;&#x4E86;&#x4F9D;&#x8D56;&#x6811;&#x548C;&#x914D;&#x7F6E;&#x53C2;&#x6570;&#x4E4B;&#x5916;&#xFF0C;&#x989D;&#x5916;&#x7684;&#x4EA7;&#x7269;&#x6709;&#xFF1A;</p>
<ol>
<li>build/outputs/tpatch-debug , debug &#x5305; patch&#x4EA7;&#x7269;</li>
<li>build/outputs/tpatch-release , release &#x5305; patch&#x4EA7;&#x7269;</li>
</ol>
</li>
</ol>
</li>
</ol>
<h3 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h3>
<h4 id="&#x914D;&#x7F6E;&#x5217;&#x8868;">&#x914D;&#x7F6E;&#x5217;&#x8868;</h4>
<table>
<thead>
<tr>
<th>&#x529F;&#x80FD;</th>
<th>&#x914D;&#x7F6E;&#x540D;&#x79F0;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x662F;&#x5426;&#x542F;&#x7528;atlas</td>
<td>mtl.atlasEnabled</td>
<td>boolean</td>
<td>true</td>
</tr>
<tr>
<td>&#x81EA;&#x52A8;&#x751F;&#x6210;bundle&#x7684;packageId</td>
<td>mtl.tBuildConfig.autoPackageId</td>
<td>boolean</td>
<td>true</td>
</tr>
<tr>
<td>&#x9884;&#x5904;&#x7406;manifest&#xFF0C; &#x5982;&#x679C;&#x5F00;&#x542F;atlas&#xFF0C;&#x5FC5;&#x987B;&#x4E3A;true</td>
<td>mtl.tBuildConfig.preProcessManifest</td>
<td>Boolean</td>
<td>true</td>
</tr>
<tr>
<td>&#x4F7F;&#x7528;&#x81EA;&#x5B9A;&#x4E49;&#x7684;aapt&#xFF0C; &#x5982;&#x679C;&#x5F00;&#x542F;atlas&#xFF0C;&#x5FC5;&#x987B;&#x4E3A;true</td>
<td>mtl.tBuildConfig.useCustomAapt</td>
<td>Boolean</td>
<td>true</td>
</tr>
<tr>
<td>aapt&#x8F93;&#x51FA;&#x7684;R&#x4E3A;&#x5E38;&#x91CF;, &#x5EFA;&#x8BAE;&#x503C;&#x8BBE;&#x7F6E;&#x4E3A;false&#xFF0C; &#x53EF;&#x4EE5;&#x51CF;&#x5C11;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x7684;patch&#x5305;&#x5927;&#x5C0F;</td>
<td>mtl.tBuildConfig.aaptConstantId</td>
<td>Boolean</td>
<td>false</td>
</tr>
<tr>
<td>&#x5408;&#x5E76;jar&#x4E2D;&#x7684;&#x8D44;&#x6E90;&#x6587;&#x4EF6;</td>
<td>mtl.tBuildConfig.mergeJavaRes</td>
<td>Boolean</td>
<td>false</td>
</tr>
<tr>
<td>&#x6784;&#x5EFA;&#x57FA;&#x7EBF;&#x5305;&#xFF0C;&#x5EFA;&#x8BAE;&#x5F00;&#x542F;&#xFF0C;&#x5426;&#x5219;&#x540E;&#x9762;&#x7684;patch&#x5305;&#x65E0;&#x6CD5;&#x8FDB;&#x884C;</td>
<td>mtl.tBuildConfig.createAP</td>
<td>Boolean</td>
<td>true</td>
</tr>
<tr>
<td>&#x5408;&#x5E76;bundle jar&#x4E2D;&#x7684;&#x8D44;&#x6E90;&#x6587;&#x4EF6;</td>
<td>mtl.tBuildConfig.mergeAwbJavaRes</td>
<td>Boolean</td>
<td>false</td>
</tr>
<tr>
<td>&#x81EA;&#x542F;&#x52A8;&#x7684;bundle&#x5217;&#x8868;&#xFF0C; &#x503C;&#x662F; packageName</td>
<td>mtl.tBuildConfig.autoStartBundles</td>
<td>List</td>
<td>[com.taobao.firstbundle]</td>
</tr>
<tr>
<td>&#x63D0;&#x524D;&#x6267;&#x884C;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x683C;&#x5F0F;&#x662F; className:methodName</td>
<td>className2:methodName2 &#xFF0C; &#x6CE8;&#x610F;class&#x548C;methodname&#x90FD;&#x4E0D;&#x80FD;&#x6DF7;&#x6DC6;&#xFF0C;&#x4E14;&#x65B9;&#x6CD5;&#x5B9E;&#x73B0;&#x662F; class.method(Context)</td>
<td>mtl.tBuildConfig.preLaunch</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td> &#x57FA;&#x7EBF;&#x7684;&#x4F9D;&#x8D56;&#x5750;&#x6807;&#xFF0C; &#x5982;&#xFF1A; com.taobao.android:taobao-android-release:6.3.0-SNAPSHOT@ap</td>
<td>mtl.buildTypes.debug.baseApDependency</td>
<td>String</td>
<td>null</td>
</tr>
<tr>
<td> &#x57FA;&#x7EBF;&#x7684;&#x4F9D;&#x8D56;&#x5750;&#x6807;&#xFF0C; &#x5982;&#xFF1A; com.taobao.android:taobao-android-release:6.3.0-SNAPSHOT@ap</td>
<td>mtl.buildTypes.release.baseApDependency</td>
<td>String</td>
<td>null</td>
</tr>
<tr>
<td>&#x4F7F;&#x7528;atlas&#x7684;application&#xFF0C;&#x5305;&#x542B; atlas&#x57FA;&#x7840;&#x521D;&#x59CB;&#x5316;&#x53CA;multidex&#x903B;&#x8F91;</td>
<td>mtl.manifestOptions.replaceApplication</td>
<td>boolean</td>
<td>true</td>
</tr>
<tr>
<td> &#x6253;andfix patch &#x5305;</td>
<td>mtl.patchConfigs.debug.createAPatch</td>
<td>boolean</td>
<td>false</td>
</tr>
<tr>
<td> &#x6253;&#x52A8;&#x6001;&#x90E8;&#x7F72; patch &#x5305;</td>
<td>mtl.patchConfigs.debug.createTPatch</td>
<td>boolean</td>
<td>true</td>
</tr>
<tr>
<td> andfix &#x6253;&#x5305;&#x8FC7;&#x6EE4; class &#x5217;&#x8868;&#x6587;&#x4EF6;</td>
<td>mtl.patchConfigs.debug.filterFile</td>
<td>File</td>
<td>null</td>
</tr>
<tr>
<td> andfix &#x6253;&#x5305;&#x8FC7;&#x6EE4; class &#x5217;&#x8868;&#x6587;&#x4EF6;</td>
<td>mtl.patchConfigs.debug.filterClasses</td>
<td>Set</td>
<td>[]</td>
</tr>
<tr>
<td> &#x6253;andfix patch &#x5305;</td>
<td>mtl.patchConfigs.release.createAPatch</td>
<td>boolean</td>
<td>false</td>
</tr>
<tr>
<td> &#x6253;&#x52A8;&#x6001;&#x90E8;&#x7F72; patch &#x5305;</td>
<td>mtl.patchConfigs.release.createTPatch</td>
<td>boolean</td>
<td>false</td>
</tr>
<tr>
<td> andfix &#x6253;&#x5305;&#x8FC7;&#x6EE4; class &#x5217;&#x8868;&#x6587;&#x4EF6;</td>
<td>mtl.patchConfigs.release.filterFile</td>
<td>File</td>
<td>null</td>
</tr>
<tr>
<td> andfix &#x6253;&#x5305;&#x8FC7;&#x6EE4; class &#x5217;&#x8868;&#x6587;&#x4EF6;</td>
<td>mtl.patchConfigs.release.filterClasses</td>
<td>Set</td>
<td>[]</td>
</tr>
</tbody>
</table>
<h4 id="&#x6700;&#x7B80;&#x914D;&#x7F6E;">&#x6700;&#x7B80;&#x914D;&#x7F6E;</h4>
<pre><code>atlas {
    atlasEnabled true
}
</code></pre><p>&#x5177;&#x4F53;&#x53C2;&#x8003; <code>atlas-demo/app/build.gradle</code></p>
<h2 id="packageidfileproperties">packageIdFile.properties</h2>
<p>&#x6BCF;&#x4E2A;bundle&#x5728;&#x751F;&#x6210;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x9700;&#x8981;&#x4E3A;&#x5176;&#x5206;&#x914D;&#x72EC;&#x7ACB;&#x7684;packageId&#xFF0C;&#x7528;&#x4EE5;&#x4F7F;&#x5176;&#x4FDD;&#x8BC1;&#x6BCF;&#x4E2A;bundle&#x7684;&#x8D44;&#x6E90;ID&#x5168;&#x5C40;&#x552F;&#x4E00;&#xFF1B;&#x8D44;&#x6E90;ID&#x7684;&#x53EF;&#x5206;&#x914D;&#x533A;&#x95F4;&#x4E3A;<strong>[0x21,0x7f)</strong>,0x1x&#x4E3A;&#x7CFB;&#x7EDF;&#x4FDD;&#x7559;&#xFF0C;0x7f&#x4E3A;&#x4E3B;apk&#x4F7F;&#x7528;&#xFF0C;0x20&#x4E4B;&#x524D;&#x7684;&#x53D1;&#x73B0;miui&#x91CC;&#x9762;&#x5185;&#x90E8;&#x5DF2;&#x4F7F;&#x7528;&#xFF0C;&#x6240;&#x4EE5;&#x76EE;&#x524D;&#x6211;&#x6CA1;&#x9009;&#x62E9;&#x8FD9;&#x4E2A;&#x533A;&#x95F4;&#x4F5C;&#x4E3A;bundle&#x7684;packageId&#x5206;&#x914D;&#x533A;&#x95F4;
&#x4E66;&#x5199;&#x7684;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;<strong>groupId:artificatId=XX</strong>&#xFF08;&#x5982;&#x4E0B;&#x56FE;&#xFF09;</p>
<h2 id="bundlebaseinfofilejson">bundleBaseInfoFile.json</h2>
<p>bundleBaseInfoFile &#x662F;&#x4E00;&#x4E2A;JSON&#x683C;&#x5F0F;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x91CC;&#x9762;&#x8BB0;&#x5F55;bundle&#x7684;&#x4FE1;&#x606F;&#x4EE5;&#x53CA;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#xFF0C;<strong>dependency</strong>&#x5B57;&#x6BB5;&#x7528;&#x4E8E;&#x6807;&#x8BC6;&#x8BE5;bundle&#x6240;&#x4F9D;&#x8D56;&#x7684;bundle&#xFF0C;&#x5982;&#x679C;A&#x4F9D;&#x8D56;B&#xFF0C;B&#x4F9D;&#x8D56;C&#xFF0C;&#x5219;&#x89E6;&#x53D1;&#x7684;Abundle&#x5B89;&#x88C5;&#x65F6;&#xFF0C;&#x5B9E;&#x9645;&#x7684;&#x5B89;&#x88C5;&#x987A;&#x5E8F;&#x4E3A;C-&gt;B-&gt;A,<strong>JSONArrary&#x4E2D;&#x6BCF;&#x4E2A;item&#x7684;key&#x4E3A;&#x8BE5;bundle&#x7684;artificatID,dependency&#x91CC;&#x9762;&#x7684;item&#x4E3A;&#x88AB;&#x4F9D;&#x8D56;&#x7684;bundle&#x7684;packageName</strong>
&gt;
<img src="guide_img/bundlebaseinfo.png" alt="MacDown Screenshot"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 接入指引">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="guide_for_bundle.html" class="navigation navigation-next " aria-label="Next page: bundle拆分|新建">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"容器接入","level":"1.3.1","depth":2,"next":{"title":"bundle拆分|新建","level":"1.3.2","depth":2,"path":"guide-for-use/guide_for_bundle.md","ref":"guide-for-use/guide_for_bundle.md","articles":[]},"previous":{"title":"接入指引","level":"1.3","depth":1,"path":"guide-for-use/README.md","ref":"guide-for-use/README.md","articles":[{"title":"容器接入","level":"1.3.1","depth":2,"path":"guide-for-use/guide_for_build.md","ref":"guide-for-use/guide_for_build.md","articles":[]},{"title":"bundle拆分|新建","level":"1.3.2","depth":2,"path":"guide-for-use/guide_for_bundle.md","ref":"guide-for-use/guide_for_bundle.md","articles":[]},{"title":"awo编译","level":"1.3.3","depth":2,"path":"guide-for-use/guide_for_compile.md","ref":"guide-for-use/guide_for_compile.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"guide-for-use/guide_for_build.md","mtime":"2017-03-06T04:59:33.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-03-13T13:23:36.222Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

